package com.hundunjiang.CommonServer.client;

import com.hundunjiang.CommonServer.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "tools-server" )
@Component
public interface ToolsClient {

    /*
     * 邮箱注册
     * */
    @GetMapping(value = "/email/regist")
    public CommonResult regist(@RequestParam("email") String email, @RequestParam("password") String password);

    /*
     * 获取手机验证码(注册)
     * */
    @GetMapping(value = "/phone/get_phone_code")
    public CommonResult get_phone_code(@RequestParam("phone") String phone);
}
